/*
 * activitylist.cpp
 *
 *  Created on: Jul 21, 2010
 *      Author: nintang
 */

#include "activitylist.h"

activitylist::activitylist(int i, QWidget *parent)
    : QWidget(parent)
{
	QWidget *widget1=new QWidget(this);
	QWidget *widget2=new QWidget(widget1);
	widget1->resize(360,140);
	widget2->setGeometry(QRect(220,10, 98, 55));
	if(i%2==0)
		{widget1->setStyleSheet("background-image:url(:/images/34.png); font:bold 18px; color:black;");
		 widget2->setStyleSheet("background-image:url(:/images/36.png);");}
	else
		{widget1->setStyleSheet("background-image:url(:/images/33.png); font:bold 18px; color:black;");
		 widget2->setStyleSheet("background-image:url(:/images/35.png);");}
	QLabel *labelName=new QLabel(QApplication::translate("activitylist", "\345\220\215\347\247\260\357\274\232", 0, QApplication::UnicodeUTF8),widget1);
	labelName->setGeometry(QRect(15,10, 80, 30));
	QLabel *labelTime=new QLabel(QApplication::translate("activitylist", "\346\227\266\351\227\264\357\274\232", 0, QApplication::UnicodeUTF8),widget1);
	labelTime->setGeometry(QRect(15,40, 80, 30));
	QLabel *labelPlace=new QLabel(QApplication::translate("activitylist", "\345\234\260\347\202\271\357\274\232", 0, QApplication::UnicodeUTF8),widget1);
	labelPlace->setGeometry(QRect(15,70, 80, 30));
	QLabel *labelSponsor=new QLabel(QApplication::translate("activitylist", "\345\217\221\350\265\267\344\272\272\357\274\232", 0, QApplication::UnicodeUTF8),widget1);
	labelSponsor->setGeometry(QRect(15,100, 80, 30));
	QLabel *labelNumber=new QLabel(QApplication::translate("activitylist", "56\344\272\272", 0, QApplication::UnicodeUTF8),widget2);
	labelNumber->setGeometry(QRect(30,5, 60, 25));
	labelNumber->setStyleSheet("background:transparent;font:bold 18px;color:black;");
	QLabel *labelState=new QLabel(QApplication::translate("activitylist", "\346\255\243\345\234\250\350\277\233\350\241\214", 0, QApplication::UnicodeUTF8),widget2);
	labelState->setGeometry(QRect(13,30, 80, 25));
	labelState->setStyleSheet("background:transparent;font:bold 18px;color:black;");
	QLineEdit *lineEditName = new QLineEdit(widget1);
	lineEditName->setGeometry(QRect(100, 10, 60, 30));
	//QFrame *line=new QFrame(this);
    //line->setGeometry(QRect(0, 130, 360, 10));
    //line->setFrameShape(QFrame::HLine);
    //line->setFrameShadow(QFrame::Sunken);

}
activitylist::~activitylist()
{

}

